package com.entity;

import java.io.Serializable;

/**
 * room
 * @author 
 */
public class Room implements Serializable {
    private Integer roomid;

    private String roomnumber;

    private Integer roomstatusid;

    private Integer buildingid;

    private static final long serialVersionUID = 1L;

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public String getRoomnumber() {
        return roomnumber;
    }

    public void setRoomnumber(String roomnumber) {
        this.roomnumber = roomnumber;
    }

    public Integer getRoomstatusid() {
        return roomstatusid;
    }

    public void setRoomstatusid(Integer roomstatusid) {
        this.roomstatusid = roomstatusid;
    }

    public Integer getBuildingid() {
        return buildingid;
    }

    public void setBuildingid(Integer buildingid) {
        this.buildingid = buildingid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Room other = (Room) that;
        return (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()))
            && (this.getRoomnumber() == null ? other.getRoomnumber() == null : this.getRoomnumber().equals(other.getRoomnumber()))
            && (this.getRoomstatusid() == null ? other.getRoomstatusid() == null : this.getRoomstatusid().equals(other.getRoomstatusid()))
            && (this.getBuildingid() == null ? other.getBuildingid() == null : this.getBuildingid().equals(other.getBuildingid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        result = prime * result + ((getRoomnumber() == null) ? 0 : getRoomnumber().hashCode());
        result = prime * result + ((getRoomstatusid() == null) ? 0 : getRoomstatusid().hashCode());
        result = prime * result + ((getBuildingid() == null) ? 0 : getBuildingid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomid=").append(roomid);
        sb.append(", roomnumber=").append(roomnumber);
        sb.append(", roomstatusid=").append(roomstatusid);
        sb.append(", buildingid=").append(buildingid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}